package com.prj.ufdm.cloud.feign.api;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.prj.ufdm.cloud.feign.model.News;
import com.prj.ufdm.cloud.feign.bpo.NewsBPO;

@RestController
public class NewsApi {
	
	@Autowired
	private NewsBPO newsBPO;
	
	@RequestMapping("/news/list")
	@ResponseBody
	public List<News> getNewsList() {
		return newsBPO.getNewsList();
	}
}
